import * as vscode from "vscode";

export function openDiffView(
  originalFileUri: vscode.Uri,
  modifiedFileUri: vscode.Uri,
  title: string,
  config?: Record<string, any>,
) {
  // 执行 diff 命令
  vscode.commands.executeCommand(
    "vscode.diff",
    originalFileUri,
    modifiedFileUri,
    title,
    config || {
      ignoreTrimWhitespace: false,
      renderIndicators: true,
    },
  );
}
